package com.example.megaandroidrssreader;

import java.util.ArrayList;

public interface RssReaderDao {
	
	public RssSource getRssSource(String url);
	
	public ArrayList<RssSource> getRssSources();
	
	public boolean addRssSource(RssSource rssSource);
	
	public boolean addAllRssSources(ArrayList<RssSource> rssSources);
	
	public boolean updateRssSource(RssSource oldRssSource, RssSource newRssSource);
	
	public boolean deleteRssSource(RssSource rssSource);
	
	public void deleteAllRssSources();
	
	public int getViewModeSetting();
	
	public void setViewModeSetting(int viewModeSetting);
	
	public ArrayList<RssItem> getAllRssItems(RssSource rssSource);
	
	public ArrayList<RssItem> getRssItems(RssSource rssSource, int limit);
	
	public boolean addRssItems(RssSource rssSource, ArrayList<RssItem> rssItems);
	
	public boolean addRssItem (RssSource rssSource, RssItem rssItem);
	
	public boolean updateRssItem (RssSource rssSource, RssItem oldRssItem, RssItem newRssItem);
	
	public boolean deleteRssItem (RssSource rssSource, RssItem rssItem);
	
	public void deleteAllRssItems (RssSource rssSource);
	
}
